const forMate = () => {

  const date = new Date()

  const Year = date.getFullYear()
    let Month = date.getMonth() + 1
    let Dates = date.getDate()
    let Hours = date.getHours()
    let Minutes = date.getMinutes()
    let seconds = date.getSeconds()
    if(Month < 10) {
      Month = '0' + Month
    }
    if(Dates < 10) {
      Dates = '0' + Dates
    }
    if(Hours < 10) {
      Hours = '0' + Hours
    }
    if(Minutes < 10) {
      Minutes = '0' + Minutes
    }
    if(seconds < 10) {
      seconds = '0' + Minutes
    }
    return `${Year}${Month}${Dates}${Hours}:${Minutes}:${seconds}`
}

export default forMate